{extend name="../application/public/base.html" /}
{block name="head"}
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/list.css">
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/btn.css">
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/form.css">
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a><cite>导航元素</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
		<div class="layui-fluid">
		    <div class="layui-row layui-col-space15">
		        <form class="layui-form layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <span class="zcc-title">{$title}</span>
                            <span>
                                {if condition="!isset($row->is_show)"}
                                <div class="layui-input-inline">
                                    <input type="radio" name="is_show" lay-skin="primary" value="0" lay-verify="is_show" title="开启">
                                    <input style="margin-left: 30px;" type="radio" name="is_show" lay-verify="is_show" value="1" lay-skin="primary" title="关闭">
                                </div>
                                {else}
                                <div class="layui-input-inline">
                                    <input {if condition="$row['is_show'] == 0"} checked="" {/if} type="radio" name="is_show" lay-skin="primary" value="0" lay-verify="is_show" title="开启">
                                    <input {if condition="$row['is_show'] == 1"} checked="" {/if} style="margin-left: 30px;" type="radio" name="is_show" lay-verify="is_show" value="1" lay-skin="primary" title="关闭">
                                </div>
                                {/if}
                            </span>
                            <div class="layui-btn" lay-submit lay-filter="baocun" style="float: right;">确定</div>
                        </div>
                    </div>
		            <div class="layui-card">
                        <div class="layui-card-body">
                            {foreach $content['type'] as $key => $val}
                            <div class="layui-tab layui-tab-card zcc-card-top">
                                <div class="zcc-red-title">{$val}</div>
                                <div class="layui-form-item">
                                    {foreach $content['field'][$key] as $ko => $vo}
                                    <div class="layui-input-block" style="margin-left: 20px;">

                                            {foreach $vo as $k => $v}
                                            {if condition="in_array($k,$content['must'])"}
                                            <input type="checkbox" checked="" disabled lay-skin="primary" title="{$v}">
                                            <input type="hidden" name="field[]" value="{$k}">
                                            {elseif condition="in_array($k,$row->content)"}
                                            <input type="checkbox" checked="true" name="field[]" value="{$k}" lay-skin="primary" title="{$v}">
                                            {else}
                                            <input type="checkbox" lay-skin="primary" name="field[]" value="{$k}" title="{$v}">
                                            {/if}
                                        
                                            {/foreach}
                                    </div>
                                    {/foreach}
                                </div>
                            </div>
                            {/foreach}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </body>
{/block}
{block name="script"}
    <script type="text/javascript" src="ADMIN_CUSTOM/js/printing/edit.js"></script>
    <!-- <script type="text/html" id="table-btn">
      <a class="layui-btn layui-btn-xs" lay-event="query_ret">确认返库</a>
    </script> -->
    
{/block}